package com.itetchologyandenglish.home.mapper;

import com.itetchologyandenglish.home.enetity.Auth;
import com.itetchologyandenglish.home.enetity.RoleAuth;
import com.itetchologyandenglish.home.enetity.Roles;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author RudeCrab
 */
@Repository
public interface RoleMapper {
    Integer addRole(@Param("roleId")Integer roleId,@Param("roleName")String roleName);
    int deleteRole(Integer roleId);
    List<Roles> getRoleList();
    Roles getRolesIdByRoleName(String roleName);
    List<Auth> getUserRoleAuth(Integer roleId);
}
